/**
* 作者: clz
* 日期: 2025-05-07 02:30:27
* 备注: 联盟捐献模块信息
*/
package com.motu.monstercity.server.game.userdata;

import com.motu.vertx.module.utility.toolset.TimeUtils;

public class UnionDonateInfo extends UnionDonateInfoModel {
	public UnionDonateInfo() {
		super();
	}

	public UnionDonateInfo(long unionId) {
		putId(unionId);
		putProgress(1);
		putResetTime(TimeUtils.getCurTime());
	}

	public void reset() {
		long curTime = TimeUtils.getCurTime();
		if (!TimeUtils.isToday(resetTime)) {
			putResetTime(curTime);
			//重置捐献进度
			putProgress(0);
			update();
		}
	}
}
